from selenium.webdriver.common.by import By

from base.base_action import BaseAction


class ResPage(BaseAction):
    # 特征
    # text_label = By.ID, 'right_nav_1'
    input_s_label = By.XPATH, "//input[@class='textInput input-hook']"
    click_bu_label = By.XPATH, '//input[@value="百度一下"]'

    # 操作
    # def res_get_text(self):
    #     return self.get_text(self.text_label)

    def input_s(self, text):
        self.send_keys(self.input_s_label, text)

    def click_bu(self):
        self.click(self.click_bu_label)
